package org.dromara.curd.dnnyun.service;

import org.dromara.curd.dnnyun.domain.bo.DnnyunStoreAchievementBo;
import org.dromara.curd.dnnyun.domain.vo.DnnyunStoreAchievementVo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * 店面业绩统计Service接口
 *
 * @author wdm
 * @date 2024-03-07
 */
public interface IDnnyunStoreAchievementService {

    /**
     * 查询店面业绩统计
     */
    DnnyunStoreAchievementVo queryById(Long id);

    /**
     * 查询店面业绩统计列表
     */
    TableDataInfo<DnnyunStoreAchievementVo> queryPageList(DnnyunStoreAchievementBo bo, PageQuery pageQuery);

    /**
     * 查询店面业绩统计列表
     */
    List<DnnyunStoreAchievementVo> queryList(DnnyunStoreAchievementBo bo);

    /**
     * 新增店面业绩统计
     */
    Boolean insertByBo(DnnyunStoreAchievementBo bo);

    /**
     * 批量插入东云区域门店
     * @param boList
     * @return
     */
    Boolean insertBatchByBo(List<DnnyunStoreAchievementBo> boList);

    /**
     * 修改店面业绩统计
     */
    Boolean updateByBo(DnnyunStoreAchievementBo bo);

    /**
     * 校验并批量删除店面业绩统计信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean deleteByOrderDate(Date orderDate);
}
